package com.smartfactory.sail.mapper;

import com.smartfactory.sail.entity.ItemWorkingprocedure;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartfactory.sail.entity.ItemWorkingprocedureDevice;
import com.smartfactory.sail.entity.ItemWorkingprocedureInfo;
import com.smartfactory.sail.vo.item.ItemWorkingprocedureResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 产品工序表 Mapper 接口
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-13
 */
@Mapper
public interface ItemWorkingprocedureMapper extends BaseMapper<ItemWorkingprocedure> {
    List<ItemWorkingprocedureResp> detail(@Param("orderId") long orderId, @Param("itemId") long itemId, @Param("dept") long dept);
    List<ItemWorkingprocedureResp> progress(@Param("orderId") long orderId, @Param("itemId") Long itemId, @Param("dept") Long dept);
    List<ItemWorkingprocedureDevice> findDevices(@Param("orderId") long orderId);
    List<ItemWorkingprocedureInfo> findInfos(@Param("orderId") long orderId);

    List<ItemWorkingprocedure> findByItemId(@Param("itemId")Long itemId);
}
